package team.seekers.hula.common.entity;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;

import java.io.Serializable;

/**
 * @ClassName BaseDTO
 * @Description TODO
 * @Author zhangt2333
 * @Date 2020/9/7 16:26
 * @Version V1.0
 **/

public class  BaseDTO implements Serializable, Cloneable {
//    @Override
//    public String toString() {
//        return ToStringBuilder.reflectionToString(this, new NoNullFieldStringStyle());
//    }

    @Override
    public boolean equals(Object obj) {
        return EqualsBuilder.reflectionEquals(this, obj, false);
    }

    @Override
    public int hashCode() {
        return HashCodeBuilder.reflectionHashCode(this, false);
    }
}
